/**
 * Mar 9, 2012 4:46:41 PM
 * com.kratonsolution.cbs.security.api.dm
 * UserRole.java
 */
package com.kratonsolution.belian.security.api.dm;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;

import com.kratonsolution.belian.kernel.dm.Model;

/**
 * @author Agung Dodi Perdana
 * @email agung.dodi.perdana@gmail.com
 * @Version Sinch 0.0.1
 */
@Entity
@Table(name="cbs_security_user_role")
@Cacheable
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
public class UserRole extends Model
{
    private static final long serialVersionUID = 5468114838225305616L;
    
    @Column(name="is_active")
    @Type(type="yes_no")
    private boolean active;
    
    @Column(name="user_id")
    private String userId;
    
    @Column(name="user_email")
    private String userEmail;
    
    @Column(name="user_nick_name")
    private String nickName;

    @Column(name="role_id")
    private String roleId;
    
    @Column(name="role_name")
    private String roleName;

    public boolean isActive()
    {
        return active;
    }

    public void setActive(boolean active)
    {
        this.active = active;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserEmail()
    {
        return userEmail;
    }

    public void setUserEmail(String userEmail)
    {
        this.userEmail = userEmail;
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getRoleId()
    {
        return roleId;
    }

    public void setRoleId(String roleId)
    {
        this.roleId = roleId;
    }

    public String getRoleName()
    {
        return roleName;
    }

    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }
}
